﻿using System;
using System.IO;

namespace BattleFury
{
	public static class Log
	{
		public static string Filename = ".\\Log.txt";

		public static void Cleanup()
		{
			if(File.Exists(Filename)) File.WriteAllText(Filename, "");
		}

		public static void Append(string message, params object[] arg)
		{
			using (var writer = File.AppendText(Filename))
			{
				var timeStamp = string.Format("{0}: ", DateTime.Now.ToLongDateString());
				writer.Write(timeStamp + message + "\r\n", arg);
			}
		}
	}
}